<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TMledit类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_mledit-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TMledit类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TMledit 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_mledit.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af9bc23415672b5a931b1778089e8d8ec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#af9bc23415672b5a931b1778089e8d8ec">TMledit</a> (long nativeObj)</td></tr>
<tr class="separator:af9bc23415672b5a931b1778089e8d8ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0722e464223c03cf0cd6f417368c49b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a0722e464223c03cf0cd6f417368c49b1">setReadonly</a> (boolean readonly)</td></tr>
<tr class="separator:a0722e464223c03cf0cd6f417368c49b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb544fc3c958938cba691fd9e3c4d599"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#adb544fc3c958938cba691fd9e3c4d599">setCancelable</a> (boolean cancelable)</td></tr>
<tr class="separator:adb544fc3c958938cba691fd9e3c4d599"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2e887dcb8bcc5953a13a39792b6c790"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ad2e887dcb8bcc5953a13a39792b6c790">setFocus</a> (boolean focus)</td></tr>
<tr class="separator:ad2e887dcb8bcc5953a13a39792b6c790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86b65665ba4365e879ab242f106e3b42"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a86b65665ba4365e879ab242f106e3b42">setWrapWord</a> (boolean wrap_word)</td></tr>
<tr class="separator:a86b65665ba4365e879ab242f106e3b42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9fe432cd270467bf9687801e9c1d1bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ad9fe432cd270467bf9687801e9c1d1bb">setOverwrite</a> (boolean overwrite)</td></tr>
<tr class="separator:ad9fe432cd270467bf9687801e9c1d1bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ea15571ceb52cfa22640c37a8ba716d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a4ea15571ceb52cfa22640c37a8ba716d">setMaxLines</a> (int max_lines)</td></tr>
<tr class="separator:a4ea15571ceb52cfa22640c37a8ba716d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c23b35d5adf619b93cbd4fa1bd1346d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a4c23b35d5adf619b93cbd4fa1bd1346d">setMaxChars</a> (int max_chars)</td></tr>
<tr class="separator:a4c23b35d5adf619b93cbd4fa1bd1346d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56a90a4f8912b205663630c4afae2e53"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a56a90a4f8912b205663630c4afae2e53">setTips</a> (String tips)</td></tr>
<tr class="separator:a56a90a4f8912b205663630c4afae2e53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59b2c062a43cc0b0b50e2eddbe999214"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a59b2c062a43cc0b0b50e2eddbe999214">setTrTips</a> (String tr_tips)</td></tr>
<tr class="separator:a59b2c062a43cc0b0b50e2eddbe999214"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b85c56fca856872bf966daedb6966e0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a7b85c56fca856872bf966daedb6966e0">setKeyboard</a> (String keyboard)</td></tr>
<tr class="separator:a7b85c56fca856872bf966daedb6966e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c60172ce3b4298b15deabe2ca5e1dc5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a3c60172ce3b4298b15deabe2ca5e1dc5">setCursor</a> (int cursor)</td></tr>
<tr class="separator:a3c60172ce3b4298b15deabe2ca5e1dc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69449203038a113eb33064fa4e59eaa5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a69449203038a113eb33064fa4e59eaa5">getCursor</a> ()</td></tr>
<tr class="separator:a69449203038a113eb33064fa4e59eaa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a258dfe4db9f13f8ed634a19fdee4c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a2a258dfe4db9f13f8ed634a19fdee4c2">setScrollLine</a> (int scroll_line)</td></tr>
<tr class="separator:a2a258dfe4db9f13f8ed634a19fdee4c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4f794d460a130b61d9371ae5715f93a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#af4f794d460a130b61d9371ae5715f93a">scrollToOffset</a> (int offset)</td></tr>
<tr class="separator:af4f794d460a130b61d9371ae5715f93a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac4ee79b7a265f1186a1f98a68eab6f5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#aac4ee79b7a265f1186a1f98a68eab6f5">setOpenImWhenFocused</a> (boolean open_im_when_focused)</td></tr>
<tr class="separator:aac4ee79b7a265f1186a1f98a68eab6f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8982cc43be82d0d30ff783adf0bd235"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ae8982cc43be82d0d30ff783adf0bd235">setCloseImWhenBlured</a> (boolean close_im_when_blured)</td></tr>
<tr class="separator:ae8982cc43be82d0d30ff783adf0bd235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe63f2cdbdcbd4a7a123a64ef038dd2c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#afe63f2cdbdcbd4a7a123a64ef038dd2c">setSelect</a> (int start, int end)</td></tr>
<tr class="separator:afe63f2cdbdcbd4a7a123a64ef038dd2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affd199d3298b2dab5dc11822c13f60fa"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#affd199d3298b2dab5dc11822c13f60fa">getSelectedText</a> ()</td></tr>
<tr class="separator:affd199d3298b2dab5dc11822c13f60fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8984799165ec04cb445d4af04df8d49"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ae8984799165ec04cb445d4af04df8d49">insertText</a> (int offset, String text)</td></tr>
<tr class="separator:ae8984799165ec04cb445d4af04df8d49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea3c36679c71463e875dc5291cb311fc"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#aea3c36679c71463e875dc5291cb311fc">getTips</a> ()</td></tr>
<tr class="separator:aea3c36679c71463e875dc5291cb311fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0d610f92fd6da5930f1f496a5fe5588"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ae0d610f92fd6da5930f1f496a5fe5588">getTrTips</a> ()</td></tr>
<tr class="separator:ae0d610f92fd6da5930f1f496a5fe5588"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d16834202f50704405588a3345d4da4"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a4d16834202f50704405588a3345d4da4">getKeyboard</a> ()</td></tr>
<tr class="separator:a4d16834202f50704405588a3345d4da4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab92660972ff26af31b416ead9d33159f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ab92660972ff26af31b416ead9d33159f">getMaxLines</a> ()</td></tr>
<tr class="separator:ab92660972ff26af31b416ead9d33159f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaaf6d364b475d67f47eb351870028980"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#aaaf6d364b475d67f47eb351870028980">getMaxChars</a> ()</td></tr>
<tr class="separator:aaaf6d364b475d67f47eb351870028980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a557a575e40b2724fb75a56d924e0d310"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a557a575e40b2724fb75a56d924e0d310">getScrollLine</a> ()</td></tr>
<tr class="separator:a557a575e40b2724fb75a56d924e0d310"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31dbe37b6cd94c217cf66f0f70da7505"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a31dbe37b6cd94c217cf66f0f70da7505">getOverwrite</a> ()</td></tr>
<tr class="separator:a31dbe37b6cd94c217cf66f0f70da7505"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e2156ce33a751dd55f6818c42e7d755"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a0e2156ce33a751dd55f6818c42e7d755">getWrapWord</a> ()</td></tr>
<tr class="separator:a0e2156ce33a751dd55f6818c42e7d755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a157ddef5498318de16eeb8d2bd585168"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a157ddef5498318de16eeb8d2bd585168">getReadonly</a> ()</td></tr>
<tr class="separator:a157ddef5498318de16eeb8d2bd585168"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9df9d525ac9df9341b2bf1cbfc66250c"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a9df9d525ac9df9341b2bf1cbfc66250c">getCancelable</a> ()</td></tr>
<tr class="separator:a9df9d525ac9df9341b2bf1cbfc66250c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40702b4b99fb2b2f165177f3695b6303"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a40702b4b99fb2b2f165177f3695b6303">getOpenImWhenFocused</a> ()</td></tr>
<tr class="separator:a40702b4b99fb2b2f165177f3695b6303"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a699124951faffa15f99620b084f634cf"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a699124951faffa15f99620b084f634cf">getCloseImWhenBlured</a> ()</td></tr>
<tr class="separator:a699124951faffa15f99620b084f634cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a94a17def42844bb6ddf3b66ca8a92eea"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a94a17def42844bb6ddf3b66ca8a92eea">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a94a17def42844bb6ddf3b66ca8a92eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a675afad3a4148911bc66f319248e0ad8"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a675afad3a4148911bc66f319248e0ad8">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a675afad3a4148911bc66f319248e0ad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a879fc486ba7bd0c532b56d71a766f140"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a879fc486ba7bd0c532b56d71a766f140">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a879fc486ba7bd0c532b56d71a766f140"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>多行编辑器控件。</p>
<p>mledit_t是widget\_t的子类控件，widget_t的函数均适用于mledit_t控件。</p>
<p>在xml中使用"mledit"标签创建多行编辑器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">mledit</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;300&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;300&quot;</span> /&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk/blob/master/design/default/ui/mledit.xml">mledit.xml</a></p>
<p>在c代码中使用函数mledit_create创建多行编辑器控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考：<a href="&lt;/blockquote&gt; https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mledit.c">mledit demo</a></p>
<p>time_clock一般不需要设置style。 </p>
</blockquote>
</blockquote>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="af9bc23415672b5a931b1778089e8d8ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9bc23415672b5a931b1778089e8d8ec">&#9670;&nbsp;</a></span>TMledit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TMledit.TMledit </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a94a17def42844bb6ddf3b66ca8a92eea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94a17def42844bb6ddf3b66ca8a92eea">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a> awtk.TMledit.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a879fc486ba7bd0c532b56d71a766f140"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a879fc486ba7bd0c532b56d71a766f140">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a> awtk.TMledit.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为mledit对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>mledit对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>mledit对象。 </dd></dl>

</div>
</div>
<a id="a675afad3a4148911bc66f319248e0ad8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a675afad3a4148911bc66f319248e0ad8">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TMledit.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建mledit对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a9df9d525ac9df9341b2bf1cbfc66250c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9df9d525ac9df9341b2bf1cbfc66250c">&#9670;&nbsp;</a></span>getCancelable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getCancelable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否支持撤销编辑。如果为TRUE，在失去焦点之前可以撤销所有修改(恢复获得焦点之前的内容)。</p>
<blockquote class="doxtable">
<p>* 1.一般配合keyboard的"cancel"按钮使用。</p><ul>
<li>2.为TRUE时，如果内容有变化，会设置编辑器的状态为changed，所以此时编辑器需要支持changed状态的style。 </li>
</ul>
</blockquote>

</div>
</div>
<a id="a699124951faffa15f99620b084f634cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a699124951faffa15f99620b084f634cf">&#9670;&nbsp;</a></span>getCloseImWhenBlured()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getCloseImWhenBlured </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否在失去焦点时关闭输入法(默认是)。 </p>

</div>
</div>
<a id="a69449203038a113eb33064fa4e59eaa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69449203038a113eb33064fa4e59eaa5">&#9670;&nbsp;</a></span>getCursor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getCursor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取编辑器光标位置。</p>
<dl class="section return"><dt>返回</dt><dd>返回光标位置。 </dd></dl>

</div>
</div>
<a id="a4d16834202f50704405588a3345d4da4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d16834202f50704405588a3345d4da4">&#9670;&nbsp;</a></span>getKeyboard()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TMledit.getKeyboard </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自定义软键盘名称。 </p>

</div>
</div>
<a id="aaaf6d364b475d67f47eb351870028980"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaaf6d364b475d67f47eb351870028980">&#9670;&nbsp;</a></span>getMaxChars()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getMaxChars </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大字符数。 </p>

</div>
</div>
<a id="ab92660972ff26af31b416ead9d33159f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab92660972ff26af31b416ead9d33159f">&#9670;&nbsp;</a></span>getMaxLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getMaxLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大行数。 </p>

</div>
</div>
<a id="a40702b4b99fb2b2f165177f3695b6303"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40702b4b99fb2b2f165177f3695b6303">&#9670;&nbsp;</a></span>getOpenImWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getOpenImWhenFocused </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获得焦点时打开输入法。</p>
<blockquote class="doxtable">
<p>主要用于没有指针设备的情况，否则每次切换焦点时都打开输入法。 </p>
</blockquote>

</div>
</div>
<a id="a31dbe37b6cd94c217cf66f0f70da7505"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31dbe37b6cd94c217cf66f0f70da7505">&#9670;&nbsp;</a></span>getOverwrite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getOverwrite </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否启用覆盖行。 </p>

</div>
</div>
<a id="a157ddef5498318de16eeb8d2bd585168"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a157ddef5498318de16eeb8d2bd585168">&#9670;&nbsp;</a></span>getReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getReadonly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>编辑器是否为只读。 </p>

</div>
</div>
<a id="a557a575e40b2724fb75a56d924e0d310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a557a575e40b2724fb75a56d924e0d310">&#9670;&nbsp;</a></span>getScrollLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getScrollLine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>鼠标一次滚动行数。 </p>

</div>
</div>
<a id="affd199d3298b2dab5dc11822c13f60fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affd199d3298b2dab5dc11822c13f60fa">&#9670;&nbsp;</a></span>getSelectedText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TMledit.getSelectedText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取选中的文本。 使用完后需调用 TKMEM_FREE() 进行释放文本占有内存。</p>
<dl class="section return"><dt>返回</dt><dd>返回选中文本。 </dd></dl>

</div>
</div>
<a id="aea3c36679c71463e875dc5291cb311fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea3c36679c71463e875dc5291cb311fc">&#9670;&nbsp;</a></span>getTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TMledit.getTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>输入提示。 </p>

</div>
</div>
<a id="ae0d610f92fd6da5930f1f496a5fe5588"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0d610f92fd6da5930f1f496a5fe5588">&#9670;&nbsp;</a></span>getTrTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TMledit.getTrTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>保存用于翻译的提示信息。 </p>

</div>
</div>
<a id="a0e2156ce33a751dd55f6818c42e7d755"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e2156ce33a751dd55f6818c42e7d755">&#9670;&nbsp;</a></span>getWrapWord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getWrapWord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否自动折行。 </p>

</div>
</div>
<a id="ae8984799165ec04cb445d4af04df8d49"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8984799165ec04cb445d4af04df8d49">&#9670;&nbsp;</a></span>insertText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.insertText </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>插入一段文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>插入的偏移位置。 </td></tr>
    <tr><td class="paramname">text</td><td>待插入的文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af4f794d460a130b61d9371ae5715f93a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4f794d460a130b61d9371ae5715f93a">&#9670;&nbsp;</a></span>scrollToOffset()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.scrollToOffset </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器滚动到指定偏移位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>偏移位置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="adb544fc3c958938cba691fd9e3c4d599"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb544fc3c958938cba691fd9e3c4d599">&#9670;&nbsp;</a></span>setCancelable()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setCancelable </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>cancelable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否为可撤销修改。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cancelable</td><td>是否为可撤销修。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae8982cc43be82d0d30ff783adf0bd235"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8982cc43be82d0d30ff783adf0bd235">&#9670;&nbsp;</a></span>setCloseImWhenBlured()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setCloseImWhenBlured </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>close_im_when_blured</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否在失去焦点时关闭输入法。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">close_im_when_blured</td><td>是否是否在失去焦点时关闭输入法。在失去焦点时关闭输入法。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3c60172ce3b4298b15deabe2ca5e1dc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c60172ce3b4298b15deabe2ca5e1dc5">&#9670;&nbsp;</a></span>setCursor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setCursor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cursor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器光标位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cursor</td><td>光标位置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad2e887dcb8bcc5953a13a39792b6c790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2e887dcb8bcc5953a13a39792b6c790">&#9670;&nbsp;</a></span>setFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setFocus </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为焦点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">focus</td><td>是否为焦点。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7b85c56fca856872bf966daedb6966e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b85c56fca856872bf966daedb6966e0">&#9670;&nbsp;</a></span>setKeyboard()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setKeyboard </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>keyboard</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置自定义软键盘名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">keyboard</td><td>键盘名称(相应UI资源必须存在)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4c23b35d5adf619b93cbd4fa1bd1346d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c23b35d5adf619b93cbd4fa1bd1346d">&#9670;&nbsp;</a></span>setMaxChars()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setMaxChars </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_chars</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的最大字符数（0 为不限制字符数）。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_chars</td><td>最大字符数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4ea15571ceb52cfa22640c37a8ba716d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ea15571ceb52cfa22640c37a8ba716d">&#9670;&nbsp;</a></span>setMaxLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setMaxLines </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_lines</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的最大行数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_lines</td><td>最大行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aac4ee79b7a265f1186a1f98a68eab6f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac4ee79b7a265f1186a1f98a68eab6f5">&#9670;&nbsp;</a></span>setOpenImWhenFocused()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setOpenImWhenFocused </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>open_im_when_focused</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否在获得焦点时打开输入法。</p>
<blockquote class="doxtable">
<p>* 设置默认焦点时，打开窗口时不弹出软键盘。</p><ul>
<li>用键盘切换焦点时，编辑器获得焦点时不弹出软键盘。 </li>
</ul>
</blockquote>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">open_im_when_focused</td><td>是否在获得焦点时打开输入法。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad9fe432cd270467bf9687801e9c1d1bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad9fe432cd270467bf9687801e9c1d1bb">&#9670;&nbsp;</a></span>setOverwrite()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setOverwrite </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>overwrite</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否启用覆盖行（在行数达到最大行数时，可继续新增行，但最早的行将会消失）。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">overwrite</td><td>是否启用覆盖行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0722e464223c03cf0cd6f417368c49b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0722e464223c03cf0cd6f417368c49b1">&#9670;&nbsp;</a></span>setReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setReadonly </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>readonly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否为只读。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">readonly</td><td>只读。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2a258dfe4db9f13f8ed634a19fdee4c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a258dfe4db9f13f8ed634a19fdee4c2">&#9670;&nbsp;</a></span>setScrollLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setScrollLine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>scroll_line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器滚动速度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">scroll_line</td><td>滚动行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="afe63f2cdbdcbd4a7a123a64ef038dd2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe63f2cdbdcbd4a7a123a64ef038dd2c">&#9670;&nbsp;</a></span>setSelect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setSelect </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>选择编辑器中指定范围的文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start</td><td>起始偏移。 </td></tr>
    <tr><td class="paramname">end</td><td>结束偏移。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a56a90a4f8912b205663630c4afae2e53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56a90a4f8912b205663630c4afae2e53">&#9670;&nbsp;</a></span>setTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setTips </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的输入提示。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tips</td><td>输入提示。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a59b2c062a43cc0b0b50e2eddbe999214"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59b2c062a43cc0b0b50e2eddbe999214">&#9670;&nbsp;</a></span>setTrTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setTrTips </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>tr_tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取翻译之后的文本，然后调用mledit_set_tips。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tr_tips</td><td>提示信息。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a86b65665ba4365e879ab242f106e3b42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86b65665ba4365e879ab242f106e3b42">&#9670;&nbsp;</a></span>setWrapWord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setWrapWord </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>wrap_word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否自动折行。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">wrap_word</td><td>是否自动折行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TMledit.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
